package com.safe.first.common.config;

import com.baomidou.mybatisplus.autoconfigure.ConfigurationCustomizer;
import com.baomidou.mybatisplus.core.MybatisConfiguration;
import com.safe.first.common.handler.AutoEnumTypeHandler;
import org.springframework.stereotype.Component;

/**
 * @author Mickey
 * @since 2021/10/26
 */
@Component
public class EnumConfigurationCustomizer implements ConfigurationCustomizer {
    @Override
    public void customize(MybatisConfiguration configuration) {
        configuration.setDefaultEnumTypeHandler(AutoEnumTypeHandler.class);
    }
}
